With regard to the relationship between Unicode and UTF, it can be simple to remember: Unicode is a coding organization, a coding specification, in the Java middle Finger utf-16;utf is a Unicode encoded translation conversion format, so as to be
Introduction to using ETags to reduce Web application bandwidth and load
Recently, the public has been strongly interested in the REST-style application architecture, indicating that the elegant design of the Web has begun to attract attention. Now,
Recently, it has been plagued by problems such as javamail format and corresponding encoding.It has been so embarrassing that it is better to die.
This is just some time in the afternoon. Here we will make some simple summary of javamail, so as to
Made a system. The user_add.jsp page and the user_list.jsp page are displayed.
Add the chinese user name "I love you" and the password "123"
Garbled characters are displayed on the display page. An error occurred while displaying Chinese
Compare file contents using the Difflib module1 Example: string difference comparisonVim duibi.py#!/usr/bin/env python# -*- coding: utf-8 -*-import reimport osimport Difflibtex1= "" "Tex1:this is a test for difflib ,just try to get
OWASP top 10 top 3rd threats: "corrupted authentication and session management". In short, attackers can obtain the sessionID By eavesdropping the user name and password when accessing HTTP, or by session, then impersonate the user's Http access
Working with FormsFirst of all, write a form@ Page Language="Java"ContentType="text/html; charset=iso-8859-1"pageencoding="iso-8859-1"%>DOCTYPE HTML PUBLIC "-//w3c//dtd HTML 4.01 transitional//en" "Http://www.w3.org/TR/html4/loose.dtd
Discover problemsThe Controller class method is added @responsebody, directly returns the string, the result is garbled.As shown below:Mockhttpservletresponse:Status = 200Error message = NULLHeaders = {Content-type=[text/plain;charset=iso-8859-1],
Web integration
Shiro configuration file Shiroini
Interface
Webxml the key
Servlet
Test
Basic-Based Interceptor authentication
Web integrationIn most cases, the Web project will integrate spring.
In this, the emphasis on the search keyword importance, so that you can immediately locate the article, otherwise in elephant, no purpose awkward situation. This article is found through the export JSP to Excel.The original address: How to Export
Eclipse Web Development Project
I. Establishment of Development Environment1. Development Tools
JDK: jdk1.6.0 _ 17
Web server: APACHE-Tomcat-6.0.26
IDE: eclipse-jee-helios-SR1
2. Build a Development Environment
Because IDE is selected as the
Discover problemsThe Controller class method is added @responsebody, directly returns the string, the result is garbled.As shown below:Mockhttpservletresponse:Status = 200Error message = NULLHeaders = {Content-type=[text/plain;charset=iso-8859-1],
[Spring MVC] @ ResponseBody returned result garbled Problem SolutionProblems Found
Add @ ResponseBody to the Controller class method and return a string directly. The result is garbled.As follows:
MockHttpServletResponse:Status = 200Error message =
1. Learn about JSP and Servlet (Baidu understands it).2. Understand b/S and C/s. are browser/server and client/server respectively. where b/s is called thin mode (mainstream mode).3. Understand and download the Tomcat server: Web application server,
1. What is a Web resource?Native servlet APIs such as Httpservletrequest,httpsession,servletcontext.2. Why do I access Web resources?b/S application of the controller must access the Web resources, for example, to the domain object read and write
First step: Create a new Web project named "Testspringmvc" using Eclipse, which configures the Tomcat serverStep two: Copy the jar package you are using to the Web-inf/lib directoryStep Three: Configure Dispatcherservlet in Web. xmlDispatcherservlet
[TOC]11.28 restricting a directory from parsing PHP
There is a situation, some sites and forums are allowed to upload images to the server, but this gives the hacker left the door to enter the server, they upload some php or JS to the
11.18 Apache user authenticationNote: This chapter uses a browser to detect the virtual machine IP and virtual host domain names in the physical machine hosts file.Configure user authentication Edit the virtual host profile "Httpd-vhosts.conf".
Order:From implementation to now, it has been mainly in. NET, but occasionally in some other language projects. Recently, a Java Web project needs to be developed two times, has not studied JSP so bought a few books self-study to try. The reference
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.